package demo_10_11_01;

import java.util.ArrayList;

public class work_04 {
    public static void main(String[] args) {
        String str = "E:\\jboss-4.0.4.GA\\server\\minimal\\conf\\readme.txt";
        ArrayList<String> list = new ArrayList<String>();

        list.add(str.substring(0,str.indexOf("\\")));

        list.add(str.substring(str.indexOf("\\")+1,str.lastIndexOf("\\")));


        System.out.println(list);


    }
}
